# Contributor: Tim Yang <tdy@gmx.com>
# Contributor: dorphell <dorphell@archlinux.org>
# Contributor: Hussam Al-Tayeb <ht990332@gmail.com>
pkgname=prozilla
pkgver=2.0.4
pkgrel=5
pkgdesc="A multi-threaded download accelerator"
arch=('i686' 'x86_64')
url="http://prozilla.genesys.ro/"
license=('GPL')
depends=('gcc-libs')
makedepends=('bison' 'gettext' 'pkgconfig')
options=('!libtool')
source=(http://prozilla.genesys.ro/downloads/prozilla/tarballs/prozilla-$pkgver.tar.bz2)
md5sums=('220f03968ddac79c2d6b48a507cd9c71')

build() {
  cd "$srcdir/prozilla-$pkgver"
  sed -i 's/DL_Window:://' src/download_win.h
  ./configure --prefix=/usr --mandir=/usr/share/man \
      --enable-shared --disable-static || return 1
  make || return 1
  make DESTDIR="$pkgdir" install || return 1
}
